package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.AgentUserForOrderDBFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

@FeignClient(name = "cs-order-provider", configuration = CsConfiguration.class, fallback = AgentUserForOrderDBFallBack.class)
public interface AgentUserForOrderDB {
    @RequestMapping(value = "/getRepOrderDetail", method = RequestMethod.POST)
    Map<String,Object> getRepOrderDetail(@RequestBody  Map<String, Object> param);
    @RequestMapping(value = "/getAgentEarList", method = RequestMethod.POST)
    List<Map<String,Object>> getAgentEarList(Map<String, Object> param);
    @RequestMapping(value = "/getTodayEar", method = RequestMethod.POST)
    String getTodayEar(@RequestBody Map<String, Object> param);
    @RequestMapping(value = "/getAllEarning", method = RequestMethod.POST)
    String getAllEarning(@RequestBody Map<String, Object> area);
    @RequestMapping(value = "/getProfitOfLevlB", method = RequestMethod.POST)
    List<Map<String,Object>> getProfitOfLevlB(@RequestBody Map<String, Object> param);
    @RequestMapping(value = "/getProsByShopId", method = RequestMethod.POST)
    List<String> getProsByShopId(@RequestBody Map<String, Object> para);
    @RequestMapping(value = "/getMainPros", method = RequestMethod.POST)
    List<Map<String,Object>> getMainPros();
}
